package com.shiku.im.security.service;

import com.shiku.im.security.dto.ResourceInfoDto;
import com.shiku.im.security.entity.ResourceInfo;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @Description: TODO
 * @Author xie yuan yang
 * @Date 2020/3/6
 **/
public interface ResourceInfoManager {

    //查询全部资源
    public List<ResourceInfo> queryResourceInfo();

    //删除资源
    public void delResourceInfo(ObjectId id);

    //修改资源
    public void updateResourceInfo(ResourceInfo resourceInfo);

    //添加资源
    public ResourceInfo sava(ResourceInfo resourceInfo);

    //根据Pid查询资源信息
    public List<ResourceInfo> queryResourceInfoByPid(String pid);

    //根据id查询资源信息
    public ResourceInfo queryResourceInfoById(ObjectId id);

    //根据名称查询资源
    public List<ResourceInfo> queryResourceInfoByResourceName(String resourceName);

    public List<ResourceInfo> queryResourceInfoByResourceUrl(String resourceUrl);

    public List<ResourceInfo> queryResourceInfoByResourceAuth(String resourceAuth);

    public List<ResourceInfo> getResourceInfoByJson(String defaultString);
}
